module.exports = app => {
  const { controller, middleware, router } = app;

  router.get('获取产品列表', '/product/product/list', middleware.jwt(), controller.product.list);
  router.post('新增产品', '/product/product/insert', middleware.jwt(), controller.product.insert);
  router.post('更新产品', '/product/product/update', middleware.jwt(), controller.product.update);
  router.post('删除产品', '/product/product/delete', middleware.jwt(), controller.product.delete);
  router.get('获取产品信息', '/product/product/info', middleware.jwt(), controller.product.info);

};
